package com.yzqp.common.exception;


import com.yzqp.common.result.WebJsonResultUtil;
import lombok.Data;

/**
 * 全局运行异常
 */
@Data
public class GlobalRuntimeException extends RuntimeException {

    private int state;

    public GlobalRuntimeException(String message) {
        super(message);
        this.state = WebJsonResultUtil.ERR;
    }

    public GlobalRuntimeException(String message, int state) {
        super(message);
        this.state = state;
    }
}
